.alert-section {
  margin-bottom: 0.8rem;
  
  .alert-list {
    display: flex;
    gap: 0.8rem;
    
    .alert-wrapper {
      flex: 1;
      display: flex;
      align-items: center;
      
      .alert-icon-box {
        width: 3rem;
        height: 3rem;
        border-radius: 0.2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-right: 0.5rem;
        
        .icon-container {
          display: flex;
          justify-content: center;
          align-items: center;
          margin-bottom: 0.1rem;
        }
        
        .icon-alarm, .icon-warning, .icon-normal {
          font-size: 1.1rem;
        }
        
        .icon-alarm {
          width: 1.1rem;
          height: 1.1rem;
          background-image: url('../../../../../../../../../public/images/icon-预警.svg');
          background-size: 100% 100%;
          background-repeat: no-repeat;
          background-position: center;
          margin-bottom: 0.15rem;
          color: #ffffff;
        }
        
        .icon-warning {
          width: 1.1rem;
          height: 1.1rem;
          background-image: url('../../../../../../../../../public/images/icon-报警.svg');
          background-size: 100% 100%;
          background-repeat: no-repeat;
          background-position: center;
          margin-bottom: 0.15rem;
          color: #ffffff;
        }
        
        .icon-normal {
          width: 1.1rem;
          height: 1.1rem;
          background-image: url('../../../../../../../../../public/images/icon-正常.svg');
          background-size: 100% 100%;
          background-repeat: no-repeat;
          background-position: center;
          margin-bottom: 0.15rem;
          color: #ffffff;
        }
        
        .alert-type-text {
          font-size: 0.6rem;
          color: #ffffff;
        }
      }
      
      .alert-alarm {
        background-color: rgba(168, 22, 22, 0.9);
        border: 0.05rem solid #d71212;
      }
      
      .alert-warning {
        background-color: rgba(191, 144, 0, 0.9);
        border: 0.05rem solid #ffc107;
      }
      
      .alert-normal {
        background-color: rgba(0, 147, 49, 0.9);
        border: 0.05rem solid #00c853;
      }
      
      .alert-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        
        .current-count {
          display: flex;
          align-items: baseline;
          gap: 0.4rem;
          margin-bottom: 0.5rem;
          
          .label {
            font-size: 0.6rem;
            color: #a0aec0;
            margin-right: 0.2rem;
          }
        }
        
        .total-count {
          display: flex;
          align-items: baseline;
          gap: 0.4rem;
          .label {
            font-size: 0.6rem;
            color: #a0aec0;
            margin-right: 0.2rem;
          }
        }
      }
    }
  }
  
  // 加载状态样式
  &.loading {
    opacity: 0.85;
    
    .alert-wrapper {
      position: relative;
      
      &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.05);
        z-index: 1;
      }
    }
    
    .loading-item {
      animation: pulse 1.5s infinite ease-in-out;
    }
  }
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

.count-number {
  font-size: 0.7rem;
  color: #ffffff;
  &.alert-alarm-text {
    color: #d71212;
  }
  
  &.alert-warning-text {
    color: #ffc107;
  }
  
  &.alert-normal-text {
    color: #00c853;
  }
}


// 移动端适配
@media screen and (max-width: 38.4rem) {
  .alert-list {
    flex-wrap: wrap;
  }
} 